<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">











<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Build Force Tomcat Maven Plugin - Usage</title>
    <style type="text/css" media="all">
      @import url("./css/maven-base.css");
      @import url("./css/maven-theme.css");
      @import url("./css/site.css");
    </style>
    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
          <meta name="author" content="Martin Todorov
carlspring@gmail.com" />
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
      </head>
  <body class="composite">
    <div id="banner">
                    <span id="bannerLeft">
    
            Build Force Tomcat Maven Plugin
    
            </span>
                    <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="breadcrumbs">
          
  

  
    
  
  
    
            <div class="xleft">
        Last Published: 2009-11-22
                      </div>
            <div class="xright">      
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="leftColumn">
      <div id="navcolumn">
           
  

  
    
  
  
    
                   <h5>Overview</h5>
            <ul>
              
    <li class="none">
                    <a href="index.html">Introduction</a>
          </li>
              
    <li class="none">
              <strong>Usage</strong>
        </li>
              
    <li class="none">
                    <a href="apidocs/index.html">Javadoc</a>
          </li>
              
    <li class="none">
                    <a href="faq.html">FAQ</a>
          </li>
          </ul>
              <h5>Goals</h5>
            <ul>
              
    <li class="none">
                    <a href="plugin-info.html">Overview of Goals</a>
          </li>
              
    <li class="none">
                    <a href="examples/management.html">Management Goals</a>
          </li>
              
    <li class="none">
                    <a href="examples/deployment.html">Deployment Goals</a>
          </li>
          </ul>
              <h5>Project Documentation</h5>
            <ul>
              
                
              
      
            
      
            
      
            
      
            
      
            
      
              
        <li class="collapsed">
                    <a href="project-info.html">Project Information</a>
                </li>
              
                
              
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
              
        <li class="collapsed">
                    <a href="project-reports.html">Project Reports</a>
                </li>
          </ul>
                                                 
                        
                        
            <a href="../../" title="Google Code" class="poweredBy">
                            <img alt="Google Code" src="images/code_logo.png" />
            </a>
                                
                        
                        
            <a href="http://maven.apache.org/" title="Maven" class="poweredBy">
                            <img alt="Maven" src="http://maven.apache.org/images/logos/maven-feather.png" />
            </a>
                               
  

  
    
  
  
    
        </div>
    </div>
    <div id="bodyColumn">
      <div id="contentBox">
        <div class="section"><h2>Usage</h2>
<div class="section"><h3>Requirements</h3>
<p>The plugin need to have tomcat.home set either as a Maven property (in a pom.xml or settings.xml), or be passed in as a System.property (-Dmaven.tomcat). The default resolving behavior is as follows - if the ${tomcat.home} property} has not been set in the settings.xml / pom.xml, try to resolve it as a system property.</p>
</div>
<div class="section"><h3>Adding the dependency</h3>
<p>These are the minimal settings which are required:</p>
<div class="source"><pre>&lt;project&gt;
    ...
    &lt;build&gt;
        ...
        &lt;plugins&gt;
          ...
          &lt;plugin&gt;
            &lt;groupId&gt;org.buildforce&lt;/groupId&gt;
            &lt;artifactId&gt;tomcat-plugin&lt;/artifactId&gt;
            &lt;version&gt;1.0.0&lt;/version&gt;
          &lt;/plugin&gt;
          ...
        &lt;/plugins&gt;
        ...
    &lt;/build&gt;
    ...
    &lt;pluginRepositories&gt;
        ...
        &lt;pluginRepository&gt;
            &lt;id&gt;google-build-force-m2-releases&lt;/id&gt;
            &lt;name&gt;Hosted Releases Repository for M2 plugins&lt;/name&gt;
            &lt;url&gt;https://build-force.googlecode.com/svn/maven2/releases&lt;/url&gt;
            &lt;snapshots&gt;
                &lt;enabled&gt;false&lt;/enabled&gt;
            &lt;/snapshots&gt;
        &lt;/pluginRepository&gt;
    &lt;/pluginRepositories&gt;

&lt;/project&gt;</pre>
</div>
</div>
</div>

      </div>
    </div>
    <div class="clear">
      <hr/>
    </div>
    <div id="footer">
      <div class="xright">&#169;  
          2009
    
          
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
  </body>
</html>
